function [  ] = displayTieredParams( pic, out, whorz, wvert, data, horz,vert )
% displayTieredParams takes as arguments same parameters as the tiered
% labeling algorithem function and presents it in a graphic way.

figure;
colormap(gray(256)); 
axis off
[m,n] = size(data);
n = n * m + 6;
subplot(1,n,1), image(pic);
title('Original Image')
axis off
daspect([1 1 1]);
subplot(1,n,2), image(out);
title('Segmented Image')
axis off
daspect([1 1 1]);

for i = 1: (n-6)
    subplot(1,n,i+2), image(cell2mat(data(i)));
    x = ['data ', num2str(i)];
    title(x)
    axis off
    daspect([1 1 1]);
end
subplot(1,n,n-3), image(whorz*25);
title('Weight horz')
axis off
daspect([1 1 1]);
subplot(1,n,n-2), image(wvert*25);
title('Weight vert')
axis off
daspect([1 1 1]);
subplot(1,n,n-1), image(horz);
title('Matrix horz')
axis off
daspect([1 1 1]);
subplot(1,n,n), image(vert);
title('Matrix vert')
axis off
daspect([1 1 1]);
end

